package com.tsing.common.Demo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ExcelTarget("permissionExcelVo")
public class LogExcelVo {

    @Excel(name = "id", width = 20)
    private String id;

    @Excel(name = "操作人用户名", isImportField = "true", width = 15)
    private String username;// 操作人用户名

    @Excel(name = "操作人id", isImportField = "true", width = 20)
    private String userId;//操作人id

    @Excel(name = "操作ip", isImportField = "true", width = 20)
    private String requestIp; //操作ip

    @Excel(name = "操作时间", isImportField = "true", width = 20)
    private LocalDateTime actionDate;// 操作时间

    @Excel(name = "请求的类", isImportField = "true", width = 45)
    private String actionClass;//请求的类

    @Excel(name = "请求方法", isImportField = "true", width = 20)
    private String actionMethod;//请求方法

    @Excel(name = "操作类型", isImportField = "true", width = 10)
    private String methodType;//操作类型

    @Excel(name = "操作描述", isImportField = "true", width = 20)
    private String description;//操作描述

    @Excel(name = "请求参数", isImportField = "true", width = 40)
    private String params;//请求参数

    @Excel(name = "异常", isImportField = "true", width = 40)
    private String exception;//异常

}
